package com.wangsd.web.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wangsd.web.coupon.entity.ServiceBusiness;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangsd.web.sys.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator
 * @since 2019-09-18
 */
public interface ServiceBusinessService extends IService<ServiceBusiness> {
    /**
     *  添加服务商信息或修改服务商信息
     */
    Integer addOrUpdate(ServiceBusiness serviceBusiness);

    /**
     *  查询分页
     */
    IPage<ServiceBusiness> selectPage(String code, Integer pageNum, Integer pageSize, ServiceBusiness serviceBusiness);

    /**
     * 通过用户code查询服务商信息
     */
    List<ServiceBusiness> selectAllByUserCode(String code);

    ServiceBusiness selectBusinessByCode(String code);

    List<ServiceBusiness> selectByCode(String code);

}
